# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=perl-net-frame-device
_pkgname=Net-Frame-Device
pkgver=1.12
pkgrel=12
pkgdesc='Get network device information and gateway.'
arch=('x86_64' 'aarch64')
url='http://search.cpan.org/~gomor/Net-Frame-Device/lib/Net/Frame/Device.pm'
license=('GPL' 'PerlArtistic')
depends=('perl' 'perl-net-frame-layer-icmp6' 'perl-bit-vector' 'perl-carp-clan'
         'perl-test-exception' 'perl-sub-uplevel' 'perl-net-frame'
         'perl-class-gomor' 'perl-net-libdnet6' 'perl-net-pcap'
         'perl-net-frame-dump' 'perl-net-write' 'perl-net-frame-layer-ipv6')
options=(!emptydirs)
source=("http://search.cpan.org/CPAN/authors/id/G/GO/GOMOR/$_pkgname-$pkgver.tar.gz")
sha512sums=('aba85b72ebc412fa4e3c7083d541abf3a2c3b08bea5c44074aa5aa02f78f2a54ba1b0fa93987c08033e0105df2a5fc4364fe5fb576439dd99666f5cf34314ae6')

prepare() {
  cd "$_pkgname-$pkgver"

  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
}

build() {
  cd "$_pkgname-$pkgver"

  make
}

package() {
  cd "$_pkgname-$pkgver"

  make install DESTDIR="$pkgdir"
}

